//
//  CXDiscoverNetManager.m
//  喜马拉雅FM
//
//  Created by hcios on 2017/8/31.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "CXDiscoverNetManager.h"
#import "CXDiscoverModel.h"

//http://114.80.142.162/mobile/discovery/v1/square/list?cityCode=43_320000_3201&device=iPhone&version=6.3.15
// ? 前网址
#define kDiscoverURLPath @"http://mobile.ximalaya.com/mobile/discovery/v1/square/list"

#define kURL @"http://114.80.142.162/mobile/discovery/v1/square/list?cityCode=43_320000_3201&device=iPhone&version=6.3.15"

@implementation CXDiscoverNetManager

+(id)getDiscoverIntroduceCompletionHandle:(void (^)(id, NSError *))completed {
    
    NSDictionary *param = @{
                            @"cityCode":@"43_320000_3201",
                            @"device":@"iPhone",
                            @"version":@"6.3.15"
                            };
    
    return [self GET:kDiscoverURLPath parameters:param complationHandle:^(id responseObject, NSError *error) {
        completed([CXDiscoverModel mj_objectWithKeyValues:responseObject], error);
    }];
}

@end
